﻿<!DOCTYPE html>
<html>
<head>
    <title>CGI</title>
</head>
<body>
    <h1>Our Page</h1>
    <script>
        //01

        var isSpecial = true;
        //var isSpecial = True;
        if (isSpecial)
            console.log("It's true!");


        //02
        /*
        console.log( Boolean("Hello") );
        console.log(Boolean(""));
        console.log(Boolean(" "));
        console.log(Boolean(6));
        console.log(Boolean(0));
        console.log(Boolean(undefined));
        console.log(Boolean(null));
         */

        //03 not not a way to convert a value (variable) into a boolean value
        //1st not will converted into boolean value and 2nd not will reverse it
        /*
        var value = 99.99;
        console.log(typeof !!value);

        var value = "no value";
        console.log(!value);
        console.log(!!value);
       */
    </script>
</body>
</html>